<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * @ORM\Entity(repositoryClass="Entity\Repository\GroupRepository")
 * @ORM\Table(name="user_group")
 */
class Group extends MappedSuperclassBase
{
    /**
     *
     * @var string
     * @ORM\Column(type="string")
     * 
     */
    protected $name;
    
    /**
     *
     * @ORM\OneToMany(targetEntity="User", mappedBy="group")
     */
    protected $users;
    
    public function getName()
    {
        return $this->name;
    }
    
    public function getID()
    {
        return $this->id;
    }
    
    public function setName($name)
    {
        $this->name = $name;
    }



}